using Google.ProtocolBuffers;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class SKBuiltinDouble64_t : GeneratedMessageLite<SKBuiltinDouble64_t, SKBuiltinDouble64_t.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<SKBuiltinDouble64_t, SKBuiltinDouble64_t.Builder>
		{
			private bool resultIsReadOnly;
			private SKBuiltinDouble64_t result;
			protected override SKBuiltinDouble64_t.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override SKBuiltinDouble64_t MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override SKBuiltinDouble64_t DefaultInstanceForType
			{
				get
				{
					return SKBuiltinDouble64_t.DefaultInstance;
				}
			}
			public double DVal
			{
				get
				{
					return this.result.DVal;
				}
				set
				{
					this.SetDVal(value);
				}
			}
			public Builder()
			{
				this.result = SKBuiltinDouble64_t.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(SKBuiltinDouble64_t cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private SKBuiltinDouble64_t PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					SKBuiltinDouble64_t other = this.result;
					this.result = new SKBuiltinDouble64_t();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override SKBuiltinDouble64_t.Builder Clear()
			{
				this.result = SKBuiltinDouble64_t.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override SKBuiltinDouble64_t.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new SKBuiltinDouble64_t.Builder(this.result);
				}
				return new SKBuiltinDouble64_t.Builder().MergeFrom(this.result);
			}
			public override SKBuiltinDouble64_t BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override SKBuiltinDouble64_t.Builder MergeFrom(IMessageLite other)
			{
				if (other is SKBuiltinDouble64_t)
				{
					return this.MergeFrom((SKBuiltinDouble64_t)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override SKBuiltinDouble64_t.Builder MergeFrom(SKBuiltinDouble64_t other)
			{
				return this;
			}
			public override SKBuiltinDouble64_t.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override SKBuiltinDouble64_t.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(SKBuiltinDouble64_t._sKBuiltinDouble64TFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = SKBuiltinDouble64_t._sKBuiltinDouble64TFieldTags[num2];
					}
					uint num3 = num;
					if (num3 == 0u)
					{
						throw InvalidProtocolBufferException.InvalidTag();
					}
					if (num3 != 9u)
					{
						if (WireFormat.IsEndGroupTag(num))
						{
							return this;
						}
						this.ParseUnknownField(input, extensionRegistry, num, text);
					}
					else
					{
						this.result.hasDVal = input.ReadDouble(ref this.result.dVal_);
					}
				}
				return this;
			}
			public SKBuiltinDouble64_t.Builder SetDVal(double value)
			{
				this.PrepareBuilder();
				this.result.hasDVal = true;
				this.result.dVal_ = value;
				return this;
			}
			public SKBuiltinDouble64_t.Builder ClearDVal()
			{
				this.PrepareBuilder();
				this.result.hasDVal = false;
				this.result.dVal_ = 0.0;
				return this;
			}
		}
		public const int DValFieldNumber = 1;
		private static readonly SKBuiltinDouble64_t defaultInstance;
		private static readonly string[] _sKBuiltinDouble64TFieldNames;
		private static readonly uint[] _sKBuiltinDouble64TFieldTags;
		private bool hasDVal;
		private double dVal_;
		private int memoizedSerializedSize = -1;
		public static SKBuiltinDouble64_t DefaultInstance
		{
			get
			{
				return SKBuiltinDouble64_t.defaultInstance;
			}
		}
		public override SKBuiltinDouble64_t DefaultInstanceForType
		{
			get
			{
				return SKBuiltinDouble64_t.DefaultInstance;
			}
		}
		protected override SKBuiltinDouble64_t ThisMessage
		{
			get
			{
				return this;
			}
		}
		public double DVal
		{
			get
			{
				return this.dVal_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasDVal;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasDVal)
				{
					num += CodedOutputStream.ComputeDoubleSize(1, this.DVal);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private SKBuiltinDouble64_t()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] sKBuiltinDouble64TFieldNames = SKBuiltinDouble64_t._sKBuiltinDouble64TFieldNames;
			if (this.hasDVal)
			{
				output.WriteDouble(1, sKBuiltinDouble64TFieldNames[0], this.DVal);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasDVal)
			{
				num ^= this.dVal_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			SKBuiltinDouble64_t sKBuiltinDouble64_t = value as SKBuiltinDouble64_t;
			return sKBuiltinDouble64_t != null && (this.hasDVal == sKBuiltinDouble64_t.hasDVal && (!this.hasDVal || this.dVal_.Equals(sKBuiltinDouble64_t.dVal_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<SKBuiltinDouble64_t, SKBuiltinDouble64_t.Builder>.PrintField("dVal", this.hasDVal, this.dVal_, writer);
		}
		public static SKBuiltinDouble64_t ParseFrom(byte[] data)
		{
			return SKBuiltinDouble64_t.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private SKBuiltinDouble64_t MakeReadOnly()
		{
			return this;
		}
		public static SKBuiltinDouble64_t.Builder CreateBuilder()
		{
			return new SKBuiltinDouble64_t.Builder();
		}
		public override SKBuiltinDouble64_t.Builder ToBuilder()
		{
			return SKBuiltinDouble64_t.CreateBuilder(this);
		}
		public override SKBuiltinDouble64_t.Builder CreateBuilderForType()
		{
			return new SKBuiltinDouble64_t.Builder();
		}
		public static SKBuiltinDouble64_t.Builder CreateBuilder(SKBuiltinDouble64_t prototype)
		{
			return new SKBuiltinDouble64_t.Builder(prototype);
		}
		static SKBuiltinDouble64_t()
		{
			SKBuiltinDouble64_t.defaultInstance = new SKBuiltinDouble64_t().MakeReadOnly();
			SKBuiltinDouble64_t._sKBuiltinDouble64TFieldNames = new string[]
			{
				"dVal"
			};
			SKBuiltinDouble64_t._sKBuiltinDouble64TFieldTags = new uint[]
			{
				9u
			};
			object.ReferenceEquals(SKBuiltinDouble64T.Descriptor, null);
		}
	}
}
